const KoaRouter = require('@koa/router')
const { sign , test } = require("../controller/loginControll")
const { verifyLogin , verifyAuth } = require('../middleware/loginMiddleware.js')

const loginRouter = new KoaRouter({prefix:'/login'})


loginRouter.post('/', verifyLogin, sign)

loginRouter.get('/test' ,verifyAuth , test )


module.exports = loginRouter